<?php

require_once dirname(__FILE__).'/../lib/cityGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/cityGeneratorHelper.class.php';

/**
 * city actions.
 *
 * @package    docplus.co.za
 * @subpackage city
 * @author     Fox Matuku
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class cityActions extends autoCityActions
{
	public function preExecute() {
		$this->getUser()->setCurrentRoute("configuration");
		parent::preExecute();
	}
    
    /**
     * Executes more action
     *
     * @param sfRequest $request A request object
     */
    public function executeMore(sfWebRequest $request)
    {
        $this->cities = CityTable::getInstance()->retrieveByIsActive();
    }
}
